package net.xuele.learn.mytomcat;

import java.io.IOException;

/**
 * Created by GaoQingming on 2019/4/13 0013.
 */
public class HelloServlet extends MyServlet {
    @Override
    public void doGet(MyRequest myRequest, MyResponse myResponse) {
        try {
            myResponse.write("hello get...");
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    @Override
    public void doPost(MyRequest myRequest, MyResponse myResponse) {
        try {
            myResponse.write("hello post...");
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
